package com.rickpan.event;

import org.springframework.context.ApplicationEvent;

/**
 * 团队成员在线状态事件
 */
public class TeamMemberOnlineEvent extends ApplicationEvent {

    private final Long userId;
    private final Long teamId;
    private final boolean isOnline;

    public TeamMemberOnlineEvent(Object source, Long userId, Long teamId, boolean isOnline) {
        super(source);
        this.userId = userId;
        this.teamId = teamId;
        this.isOnline = isOnline;
    }

    public Long getUserId() {
        return userId;
    }

    public Long getTeamId() {
        return teamId;
    }

    public boolean isOnline() {
        return isOnline;
    }
}
